package message.handler;

import message.entity.MsgConfig;
import org.dom4j.DocumentException;

import java.io.UnsupportedEncodingException;
import java.util.Map;

public interface IMsgHandler {

    void packInit();

    void unPackInit();

    byte[] pack(MsgConfig msgConfig, Map source) throws Exception;

    Map<String, Object> unPack(MsgConfig msgConfig, byte[] rspByte) throws Exception;

}
